package com.irdstudio.apicenter.console.service.template;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.frame.maker.dm.SPageParamTradeInout;
import com.irdstudio.apicenter.frame.maker.dm.SPageParamTradeInoutDao;

@Service(value = "sPageParamTradeInoutService")
public class SPageParamTradeInoutService {
	@Autowired
	private SPageParamTradeInoutDao sPageParamTradeInoutDao;

	public SPageParamTradeInout queryWithKeys(String recordKey)
			throws SQLException {
		return sPageParamTradeInoutDao.queryWithKeys(recordKey);
	}

	public int insert(SPageParamTradeInout sPageParamTradeInout)
			throws SQLException, ClassNotFoundException {
		return sPageParamTradeInoutDao.insert(sPageParamTradeInout);
	}

	public int delete(String RECORD_KEY) throws ClassNotFoundException,
			SQLException {
		return sPageParamTradeInoutDao.delete(RECORD_KEY);
	}

	public List<SPageParamTradeInout> querySPageParamTradeInout(
			String trade_id, String trade_element_type) throws SQLException {
		return sPageParamTradeInoutDao.querySPageParamTradeInout(trade_id,
				trade_element_type);
	}

}
